<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Adds a record</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.tokyotyranttable.html">TokyoTyrantTable</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="tokyotyranttable.genuid.html">TokyoTyrantTable::genUid</a></div>
 <div class="up"><a href="class.tokyotyranttable.html">TokyoTyrantTable</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="tokyotyranttable.add" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">TokyoTyrantTable::add</h1>
  <p class="verinfo">(PECL tokyo_tyrant &gt;= 0.1.0)</p><p class="refpurpose"><span class="refname">TokyoTyrantTable::add</span> &mdash; <span class="dc-title">Adds a record</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-tokyotyranttable.add-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type"><span class="type void">void</span></span> <span class="methodname"><strong>TokyoTyrantTable::add</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$key</code></span>
   , <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$increment</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$type</code></span>
  ] )</div>

  <p class="para rdfs-comment">
   This method is not supported with table databases.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-tokyotyranttable.add-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">key</code></em></dt>

     <dd>

      <p class="para">
       The string key
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">increment</code></em></dt>

     <dd>

      <p class="para">
       The amount to increment
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">type</code></em></dt>

     <dd>

      <p class="para">
       <strong><code>TokyoTyrant::RDB_RECINT</code></strong> or <strong><code>TokyoTyrant::RDB_RECDBL</code></strong> constant.
       If this parameter is omitted the type is guessed from the <em><code class="parameter">increment</code></em>
       parameters type.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-tokyotyranttable.add-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   This method throws an TokyoTyrantException if used through this class.
  </p>
 </div>



 <div class="refsect1 seealso" id="refsect1-tokyotyranttable.add-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="methodname"><a href="tokyotyrant.add.html" class="methodname" rel="rdfs-seeAlso">TokyoTyrant::add()</a> - Adds to a numeric key</span></li>
   </ul>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.tokyotyranttable.html">TokyoTyrantTable</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="tokyotyranttable.genuid.html">TokyoTyrantTable::genUid</a></div>
 <div class="up"><a href="class.tokyotyranttable.html">TokyoTyrantTable</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
